<?php include ("inc/check_authen/check_authen.php");?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <link rel="stylesheet" href="admin_css/template_admin.css" type="text/css" />
 <link rel="stylesheet" href="admin_css/product.css" type="text/css" />
 <script type="text/javascript" src="js/page_function/emails.js"></script>	
<title>Admin Page</title>
</head>

<body>
<div class="container">
	<?php include("inc/layout/header/header.php");?>
    <?php include("inc/layout/navigator/navigator.php");?>
  	<div class="content"> 
  	<div id="product_catMain">
  		<div class="button_topic">ตั้งค่าอีเมลล์</div> 
  		<br/><br/>
  			
  		<table border="0" class="tb1">
  			<tr>
  				<td>ชื่อเจ้าของ</td>
  				<td><input type="text" id="emails_txtOwner" style="width:200px;"/></td>
  				<td>&nbsp;</td>
  			</tr>
  			<tr>
  				<td>ชื่ออีเมลล์</td>
  				<td><input type="text" id="emails_txtName" style="width:200px;"/></td>
  				<td>
  					<div id="tableAdd">	
  						<a href="#" onclick="addEmails(null)"><img src="images/symbol/add_button.png" alt="" class="addBtn" /></a>
  					</div>
  					<div id="tableEdit" style="display:none;">
  						<a href="#" onclick="editEmails()"><img src="images/symbol/edit_button.png" alt="" class="addBtn" /></a> 
  						<a href="#" onclick="backToAdd()" ><img src="images/symbol/cancel_button.png" alt="" class="addBtn" /></a>
  					</div>
  				</td>
  			</tr>  		
  		</table>  		  			  								   		
  		 <table id="box-table-a" border="1">
			  <thead>
			    	<tr align="center">
			            <th scope="col" width="250" >เจ้าของ email</th>
			            <th scope="col" width="250">email</th>
			            <th scope="col" width="250" >ผู้แก้ไข/ใส่</th>
			            <th scope="col" width="150">เวลาที่ใส่</th>
			            <th scope="col" width="10">แก้ไข</th>
			            <th scope="col" width="10">ลบ</th>			 
			        </tr>
			  </thead>
			  <tbody>
			  <?php include("command/rawdata/getEmailForEdit.php");?> 
			  </tbody> 	
		</table>   
   	</div>   
    <!--end admin_index-->
   </div>
	<!-- end .content --> 
	<?php include("inc/layout/footer/footer.php");?>
</div>
<form action="command/rawdata/updateEmails.php" name="formSubmit" method="post">
	<input type="hidden" id="email_id" name="email_id" value=""></input>
	<input type="hidden" id="email_owner" name="email_owner" value=""></input>
	<input type="hidden" id="email_name" name="email_name" value=""></input>
</form>
 <!-- end .container -->
</body>
</html>